/*年轻人，只管向前看，不要管自暴自弃者的话*/
package com.composetest.page.cart.navigation

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import com.composetest.page.cart.CartRoute
import com.composetest.ui.navigation.myComposable

const val CART_ROUTE = "cart"

/**
 * 跳转
 */
fun NavController.navigationToCart(): Unit {
    navigate(CART_ROUTE)
}

/**
 * 配置导航
 */
fun NavGraphBuilder.cartScreen(): Unit {
    myComposable(CART_ROUTE) {
        CartRoute()
    }
}
